package com.example.doublecache.mapper;

import com.example.doublecache.entity.AlgorithmInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface AlgorithmMapper {
    
    @Select("SELECT * FROM algorithm_info WHERE id = #{id}")
    AlgorithmInfo findById(String id);
    @Update("UPDATE algorithm_info SET name = #{name}, description = #{description}, " +
            "version = #{version}, parameters = #{parameters}, update_time = #{updateTime} " +
            "WHERE id = #{id}")
    int update(AlgorithmInfo info);
} 